package com.itheima.sc.pojo.sms;



import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.itheima.sc.pojo.pms.Product;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("sms_flash_promotion_product_relation")
public class FlashPromotionProductRelation implements Serializable {

  //编号
  private Long id;
  //秒杀活动的编号id
  private Long flashPromotionId;
  //session表的id
  private Long flashPromotionSessionId;
  //产品的id
  private Long productId;
  //限时购价格
  private Double flashPromotionPrice;
  //限时购数量
  private Long flashPromotionCount;
  //每人限购数量
  private Integer flashPromotionLimit;
  //排序
  private Integer sort;

  @TableField(exist = false)
  private Product product;

}
